package com.itany.mall.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.itany.mall.entity.Order;
import com.itany.mall.entity.OrderDetail;
import com.itany.mall.exception.OrderNotFoundException;

public interface OrderService {

	void commitOrder(Collection<OrderDetail> shopingCart);

	List<Order> findMyOrders(long userId);

	Map<Order, List<OrderDetail>> findDetailsByOrderNum(String num, long userId) throws OrderNotFoundException;

}
